﻿Namespace FTTK.Entities

    ''' <summary>
    ''' Defines user stats type string for user stats type
    ''' </summary>
    ''' <remarks></remarks>
    <Serializable()>
    Public NotInheritable Class UserStatsTypes
        Private Sub New()

        End Sub

        ''' <summary>
        ''' Gets the type string from userstats type enum value.
        ''' </summary>
        ''' <param name="type">The userstats type enum value.</param>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Shared Function GetTypeString(type As Entities.UserStatsType) As String
            Select Case type
                Case Entities.UserStatsType.MemberBoughtPhotos
                    Return UserStatsTypes.MemberBoughtPhotos
                Case Entities.UserStatsType.MemberDownloadedPhotos
                    Return UserStatsTypes.MemberDownloadedPhotos
                Case Entities.UserStatsType.MemberEarnedCredits
                    Return UserStatsTypes.MemberEarnedCredits
                Case Entities.UserStatsType.MemberViewedPhotos
                    Return UserStatsTypes.MemberViewedPhotos
                Case Else
                    Return UserStatsTypes.All
            End Select
        End Function

        Public Shared ReadOnly Property MemberViewedPhotos As String
            Get
                Return "member_viewed_photos"
            End Get
        End Property

        Public Shared ReadOnly Property MemberDownloadedPhotos As String
            Get
                Return "member_downloaded_photos"
            End Get
        End Property

        Public Shared ReadOnly Property MemberBoughtPhotos As String
            Get
                Return "member_bought_photos"
            End Get
        End Property

        Public Shared ReadOnly Property MemberEarnedCredits As String
            Get
                Return "member_earned_credits"
            End Get
        End Property

        Public Shared ReadOnly Property All As String
            Get
                Return "all"
            End Get
        End Property

    End Class

End Namespace

